KeyboardControls

open class KeyboardControls(wwd: WorldWindow)

Keyboard navigation for the globe. Multiple navigation keys may be held at the same time — pan in two directions, zoom and tilt can all be active simultaneously, and each key has its own acceleration ramp. The constructor makes the host component focusable and requests focus on a mouse press so the controls work as soon as the user clicks the globe.

Constructors

Link copied to clipboard
constructor(wwd: WorldWindow)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Per-tick growth of the speed multiplier (50 ms tick × 0.05 ≈ 5x in 4 s).

Link copied to clipboard
Link copied to clipboard

Upper bound on the per-key speed multiplier.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun release()

Detach all listeners installed by this controller. Call when the WorldWindow is no longer in use to break references that would otherwise keep it (and the Swing Timer) retained.